<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/sys.tld" prefix="sys" %>
<!DOCTYPE html>
<html lang="zh-CN" >
<head>
	<c:set var="ctx" value="${pageContext.request.contextPath}" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>经销商基本信息</title>
	<jsp:include page="../../import.jsp" flush="true" />
</head>
<!-- 是否显示三方数据页签 -->
<sys:funcAuth resCd="ThreeData">
	<span id="isShowThreeDataPage" />
</sys:funcAuth>

<sys:funcAuth resCd="isPrjAr">
	<span id="isShowPrjArPage" />
</sys:funcAuth>
<body class="iframeBody">
<div class="Wrapper">
	<div id="pageInTab" class="pageInTab">
		<div tabid="tabA" title="基本信息" lselected="true">
			<form id="formSet1">
				<div class="fieldset1 tabel_col clearFix">
					<div class="caption">
						<span class="title">基本信息</span>
					</div>
					<!-- 自然人经销商 -->
					<c:if test="${splAttrCd == 1}">
						<div class="fieldBox col_33">
							<div class="label">姓名</div>
							<div class="field">
								<span name="splNm" id="splNm">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">身份证号</div>
							<div class="field">
								<span name="succ" id="succ">&nbsp;</span>
							</div>
						</div>

						<div class="fieldBox col_33">
							<div class="label">经销商类型</div>
							<div class="field">
								<span name="prjLvlCdNm" id="prjLvlCdNm">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">联系电话</div>
							<div class="field">
								<span name="splTel" id="splTel">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">户口所在地</div>
							<div class="field">
								<span name="regAddr" id="regAddr">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">通讯地址</div>
							<div class="field">
								<span name="postAddr" id="postAddr">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">邮编</div>
							<div class="field">
								<span name="zipNo" id="zipNo">&nbsp;</span>
							</div>
						</div>

						<div class="fieldBox col_33">
							<div class="label">区域</div>
							<div class="field">
								<span name="rgnNms" id="rgnNms">&nbsp;</span>
							</div>
						</div>
						<div class="caption">
							<span class="title">更多信息</span>
						</div>
						<!-- <div class="fieldBox col_33">
							<div class="label">项目类型</div>
							<div class="field">
								<span name="prjTypCdNms" id="prjTypCdNms">&nbsp;</span>
							</div>
						</div> -->
						<div class="fieldBox col_33">
							<div class="label">所属事业部</div>
							<div class="field">
								<span name="buOrgCdNms" id="buOrgCdNms">&nbsp;</span>
							</div>
						</div>
						<c:if test="${currentBuOrgCd != null and currentBuOrgCd == '00000008'}">
							<div class="fieldBox col_33">
								<div class="label">经销商类别（专车）</div>
								<div class="field">
									<span id="splTypCd" name="splTypCd">&nbsp;</span>
								</div>
							</div>
							<div class="fieldBox col_33" >
								<div class="label">合作开始时间（专车）</div>
								<div class="field">
									<span id="coopDt" name="coopDt">&nbsp;</span>
								</div>
							</div>
							<%--<div id="zk" style="display: none">--%>
							<div class="fieldBox col_33" id = "zk_01" style="display: none">
								<div class="label">代理商协议乙方</div>
								<div class="field">
									<span id="agtSec" name="agtSec">&nbsp;</span>
								</div>
							</div>
							<div class="fieldBox col_33" id = "zk_02" style="display: none">
								<div class="label">代理商协议丙方</div>
								<div class="field">
									<span id="agtThd" name="agtThd" >&nbsp;</span>
								</div>
							</div>
							<div class="fieldBox col_33" id = "zk_03" style="display: none">
								<div class="label">代理商基础任务量</div>
								<div class="field">
									<span id="bscTaskQty" name="bscTaskQty">&nbsp;</span>
								</div>
							</div>
							<div class="fieldBox col_33" id = "zk_04" style="display: none">
								<div class="label">代理商入网保证金</div>
								<div class="field">
									<span id="entDepAmt" name="entDepAmt">&nbsp;</span>
								</div>
							</div>
							<div class="fieldBox col_33" id = "zk_05" style="display: none">
								<div class="label">我司提供车辆最高总价值</div>
								<div class="field">
									<span id="prdMaxValAmt" name="prdMaxValAmt">&nbsp;</span>
								</div>
							</div>
							<%--</div>--%>
						</c:if>
						<div class="fieldBox col_33">
							<div class="label">经销品牌(卡车类)</div>
							<div class="field">
								<span name="tkBrCdNms" id="tkBrCdNms">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">经销品牌(乘用车类)</div>
							<div class="field">
								<span name="carBrCdNms" id="carBrCdNms">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">经销品牌(客车类)</div>
							<div class="field">
								<span name="busBrCdNms" id="busBrCdNms">&nbsp;</span>
							</div>
						</div>

						<div class="fieldBox col_66">
							<div class="label">经销商所属厂商</div>
							<div class="field">
								<span name="mfrNms" id="mfrNms">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">所属交易市场</div>
							<div class="field">
								<span name="atcIdNm" id="atcIdNm">&nbsp;</span>
							</div>
						</div>
						<!-- <div class="fieldBox col_33 creditIsHidden">
							<div class="label">征信级别</div>
							<div class="field">
								<span name="rskLvlCd" id="rskLvlCd">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33 creditIsHidden">
							<div class="label">征信查询结果</div>
							<div class="field">
								<span name="audStsDesc" id="audStsDesc">&nbsp;</span>
							</div>
						</div> -->
						<!-- <div class="fieldBox col_33">
							<div class="label">经销商返利比例%</div>
							<div class="field">
								<span name="rebPct" id="rebPct">&nbsp;</span>
							</div>
						</div> -->
						<!-- add by zhaoyong 20170829 begin  -->
						<!-- <div class="fieldBox col_33">
							<div class="label">是否有权查询征信</div>
							<div class="field">
								<span name="isAuthCrdChk" id="isAuthCrdChk">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">每日可查询征信次数</div>
							<div class="field">
								<span name="limChkTms" id="limChkTms">&nbsp;</span>
							</div>
						</div> -->
						<!-- add by zhaoyong 20170829 end  -->
						<div class="fieldBox col_33">
							<div class="label">其他信息</div>
							<div class="field">
								<span name="othInfoCd" id="othInfoCd">&nbsp;</span>
							</div>
						</div>
					     <c:if test="${audStsCd != 1 }">
					    <div class="fieldBox col_33">
                            <div class="label">三方授权书是否上传</div>
                            <div class="field">
                                <span id="isUploadLoaNm" name="isUploadLoaNm">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">三方授权书是否回收</div>
                            <div class="field">
                                <span id="isRecycleLoaNm" name="isRecycleLoaNm">&nbsp;</span>
                            </div>
                        </div>
                        </c:if>
                        <c:if test="${audStsCd == 1 }">
                        <div class="fieldBox col_50">
						<div class="label">三方授权书是否提供</div>
						<div class="field">
	                        <select name="isUploadLoa" id="isUploadLoa" data-value=" " validate ="{required:true,select:true}">
	                        	<option value="2" checked >请选择</option>
	                        	<option value="1">是</option>
	                        	<option value="0">否</option>

							</select>
	                    </div>
					</div>
					<div class="fieldBox col_50">
						<div class="label">三方授权书是否回收</div>
						<div class="field">
	                        <select name="isRecycleLoa" id="isRecycleLoa" data-value=" " validate ="{required:true,select:true}">
	                        	<option value="2" checked >请选择</option>
	                        	<option value="1">是</option>
	                        	<option value="0">否</option>

							</select>
	                    </div>
					</div>
                        </c:if>
						<div class="clearFix"></div>
						<div class="sqPanel">
							<div class="sqPanel_head inL">
								<span>社会关系/家庭成员</span>
							</div>
							<div class="sqPanel_body">
								<div id="ligergrid_A1" class="sq-grid"></div>
							</div>
						</div>
						<div id="dyncdiv">
								<%-- <jsp:include page="prdSplInfoDetailDynamicPage.jsp"></jsp:include> --%>
						</div>
						<div class="fieldBox col_100" style="display: none;">
							<div class="field">
								<input name="sId" id="sId" type="text" class="ui-textbox"
									   value="${id }">
							</div>
						</div>
					</c:if>
					<c:if test="${splAttrCd != 1}">
						<div class="fieldBox col_33">
							<div class="label">经销商名称</div>
							<div class="field">
								<span name="splNm" id="splNm">&nbsp;</span>
							</div>
						</div>
						<!-- <div class="fieldBox col_33">
							<div class="label">营业执照号</div>
							<div class="field">
								<span name="bizLicNo" id="bizLicNo">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">税务登记号</div>
							<div class="field">
								<span name="taxRegNo" id="taxRegNo">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">组织机构代码号</div>
							<div class="field">
								<span name="orgCode" id="orgCode">&nbsp;</span>
							</div>
						</div> -->
						<div class="fieldBox col_33">
							<div class="label">社会统一信用代码</div>
							<c:if test="${audStsCd != 1 }">
							<div class="field">
								<span name="succ" id="succ">&nbsp;</span>
							</div>
							</c:if>
							<c:if test="${audStsCd == 1 }">
							<div class="field">
								<input name="succMdf" id="succMdf"  type="text" class="ui-textbox" validate="{required:true}">
								<span class="requiredSymbol">*</span>
							</div>
							</c:if>
						</div>
						<c:if test="${audStsCd == 1 }">
							<div class="fieldBox col_33">
								<div class="label">信息录入方式</div>
								<div class="field">
									<span name="importDataNm" id="importDataNm">&nbsp;${importDataNm}</span>
								</div>
							</div>
						</c:if>
						<div class="fieldBox col_33">
							<div class="label">经销商类型</div>
							<div class="field">
								<span name="prjLvlCdNm" id="prjLvlCdNm">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">经销商级别</div>
							<div class="field">
								<span name="splLvlCdNm" id="splLvlCdNm">&nbsp;</span>
							</div>
						</div>
						<!--  <div class="fieldBox col_33">
						<div class="label">注册电话</div>
						<div class="field">
						<span name="splTel" id="splTel">&nbsp;</span>
						</div>
						</div>
						<div class="fieldBox col_33">
						<div class="label">经销商传真</div>
						<div class="field">
						<span name="splFax" id="splFax">&nbsp;</span>
						</div>
						</div>
						<div class="fieldBox col_33">
						<div class="label">企业性质</div>
						<div class="field">
						<span name="corpTypCdNm" id="corpTypCdNm">&nbsp;</span>
						</div>
						</div> -->
						<div class="fieldBox col_33">
							<div class="label">成立日期</div>
							<div class="field">
								<span name="regDt" id="regDt">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">有效日期</div>
							<div class="field">
								<span name="expDt" id="expDt">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">注册资本</div>
							<div class="field">
								<span name="regCapAmt" id="regCapAmt">&nbsp;</span>
								<span name="regCapUntCdNm" id="regCapUntCdNm">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">实收资本</div>
							<div class="field">
								<span name="paidCapAmt" id="paidCapAmt">&nbsp;</span>
								<span name="paidCapUntCdNm" id="paidCapUntCdNm">&nbsp;</span>
							</div>
						</div>
						<!-- <div class="fieldBox col_33">
						<div class="label">是否回购</div>
						<div class="field">
						<span name="isBuyBack" id="isBuyBack">&nbsp;</span>
						</div>
						</div> -->
						<div class="fieldBox col_33">
							<div class="label">经营范围</div>
							<div class="field">
								<span name="bizScope" id="bizScope">&nbsp;</span>
							</div>
						</div>

						<div class="fieldBox col_33">
							<div class="label">注册地址</div>
							<div class="field">
								<a href="javascript:toRegAddrList()" class="sq-button-hasicon link">
									<i class="sqBtnIco_1"></i>
									<span name="regAddr" id="regAddr">&nbsp;</span>
								</a>

							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">公司归属</div>
							<div class="field">
								<span name="ownerCdNm" id="ownerCdNm">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">区域(省)</div>
							<div class="field">
								<span name="rgnNms" id="rgnNms">&nbsp;</span>
							</div>
						</div>
						<!-- <div class="fieldBox col_33">
						<div class="label">供销商网址</div>
						<div class="field">
						<span name="websit" id="websit">&nbsp;</span>
						</div>
						</div> -->

						<!--  <div class="fieldBox col_33">
						<div class="label">档案协议编号</div>
						<div class="field">
						<span name="fileNo" id="fileNo">&nbsp;</span>
						</div>
						</div> -->

						<div class="fieldBox col_66">
							<div class="label">办公地址</div>
							<div class="field">
								<span name="postAddr" id="postAddr">&nbsp;</span>
							</div>
						</div>
						<!-- <div class="fieldBox col_33">
						<div class="label">企业邮编</div>
						<div class="field">
						<span name="zipNo" id="zipNo">&nbsp;</span>
						</div>
						</div> -->
						<div class="caption">
							<span class="title">更多信息</span>
						</div>
						<div class="fieldBox col_100">
							<div class="label">项目类型</div>
							<div class="field">
								<span name="prjTypCdNms" id="prjTypCdNms">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">经营类型(新车)</div>
							<div class="field">
								<span name="newCarNms" id="newCarNms">&nbsp;</span>
							</div>
						</div>

						<div class="fieldBox col_33">
							<div class="label">经营类型(二手车)</div>
							<div class="field">
								<span name="usedCarNms" id="usedCarNms">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_33">
							<div class="label">经销品牌(卡车类)</div>
							<div class="field">
								<span name="tkBrCdNms" id="tkBrCdNms">&nbsp;</span>
							</div>
						</div>
						<!-- <div class="fieldBox col_33">
						<div class="label">经销品牌(乘用车类)</div>
						<div class="field">
						<span name="carBrCdNms" id="carBrCdNms">&nbsp;</span>
						</div>
						</div> -->
						<div class="fieldBox col_33">
							<div class="label">经销品牌(客车类)</div>
							<div class="field">
								<span name="busBrCdNms" id="busBrCdNms">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_100">
							<div class="label">所属事业部</div>
							<div class="field">
								<span name="buOrgCdNms" id="buOrgCdNms">&nbsp;</span>
							</div>
						</div>

						<c:if test="${currentBuOrgCd != null and currentBuOrgCd == '00000008'}">
							<div class="fieldBox col_33">
								<div class="label">经销商类别（专车）</div>
								<div class="field">
									<span id="splTypCd" name="splTypCd">&nbsp;</span>
								</div>
							</div>
							<div class="fieldBox col_33" >
								<div class="label">合作开始时间（专车）</div>
								<div class="field">
									<span id="coopDt" name="coopDt">&nbsp;</span>
								</div>
							</div>
							<%--<div id="zk" style="display: none">--%>
							<div class="fieldBox col_33" id = "zk_01" style="display: none">
								<div class="label">代理商协议乙方</div>
								<div class="field">
									<span id="agtSec" name="agtSec">&nbsp;</span>
								</div>
							</div>
							<div class="fieldBox col_33" id = "zk_02" style="display: none">
								<div class="label">代理商协议丙方</div>
								<div class="field">
									<span id="agtThd" name="agtThd" >&nbsp;</span>
								</div>
							</div>
							<div class="fieldBox col_33" id = "zk_03" style="display: none">
								<div class="label">代理商基础任务量</div>
								<div class="field">
									<span id="bscTaskQty" name="bscTaskQty">&nbsp;</span>
								</div>
							</div>
							<div class="fieldBox col_33" id = "zk_04" style="display: none">
								<div class="label">代理商入网保证金</div>
								<div class="field">
									<span id="entDepAmt" name="entDepAmt">&nbsp;</span>
								</div>
							</div>
							<div class="fieldBox col_33" id = "zk_05" style="display: none">
								<div class="label">我司提供车辆最高总价值</div>
								<div class="field">
									<span id="prdMaxValAmt" name="prdMaxValAmt">&nbsp;</span>
								</div>
							</div>
							<%--</div>--%>
						</c:if>
						<div class="fieldBox col_100">
							<div class="label">所属厂商</div>
							<div class="field">
								<span name="mfrNms" id="mfrNms">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_100_auto">
							<div class="label">所属交易市场</div>
							<div class="field">
								<span name="atcIdNm" id="atcIdNm">&nbsp;</span>
							</div>
						</div>
						<div class="fieldBox col_100">
							<div class="label">经销商返利比例%</div>
							<div class="field">
								<span name="rebPct" id="rebPct">&nbsp;</span>
							</div>
						</div>
						<!-- add by zhaoyong 20170829 begin  -->
						<!-- <div class="fieldBox col_33">
						<div class="label">是否有权查询征信</div>
						<div class="field">
						<span name="isAuthCrdChk" id="isAuthCrdChk">&nbsp;</span>
						</div>
						</div>
						<div class="fieldBox col_33">
						<div class="label">每日可查询征信次数</div>
						<div class="field">
						<span name="limChkTms" id="limChkTms">&nbsp;</span>
						</div>
						</div> -->
						<!-- add by zhaoyong 20170829 end  -->
						<div class="fieldBox col_33">
							<div class="label">其他信息</div>
							<div class="field">
								<span name="othInfoCd" id="othInfoCd">&nbsp;</span>
							</div>
						</div>
						<c:if test="${audStsCd != 1 }">
					    <div class="fieldBox col_33">
                            <div class="label">三方授权书是否上传</div>
                            <div class="field">
                                <span id="isUploadLoaNm" name="isUploadLoaNm">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">三方授权书是否回收</div>
                            <div class="field">
                                <span id="isRecycleLoaNm" name="isRecycleLoaNm">&nbsp;</span>
                            </div>
                        </div>
                        </c:if>
                        <c:if test="${audStsCd == 1 }">
                        <div class="fieldBox col_50">
						<div class="label">三方授权书是否提供</div>
						<div class="field">
	                        <select name="isUploadLoa" id="isUploadLoa" data-value=" " validate ="{required:true,select:true}">
	                        	<option value="2" checked >请选择</option>
	                        	<option value="1">是</option>
	                        	<option value="0">否</option>

							</select>
	                    </div>
					</div>
					<div class="fieldBox col_50">
						<div class="label">三方授权书是否回收</div>
						<div class="field">
	                        <select name="isRecycleLoa" id="isRecycleLoa" data-value=" " validate ="{required:true,select:true}">
	                        	<option value="2" checked >请选择</option>
	                        	<option value="1">是</option>
	                        	<option value="0">否</option>

							</select>
	                    </div>
					</div>
                        </c:if>
						<div class="clearFix"></div>
						<div class="sqPanel">
							<div class="sqPanel_head inL">
								<span>主要人员信息</span>
							</div>
							<div class="sqPanel_body">
								<div id="ligergrid_A1" class="sq-grid"></div>
							</div>
						</div>
						<div class="caption">
							<span class="title">资料信息</span>
						</div>
						<div class="fieldBox col_100">
							<div id="fileList">
								<jsp:include page="../../system/sysUlFilesRec/sysUlFileRecListDetail.jsp" flush="true" >
									<jsp:param name="pkId" value="${id }"/>
									<jsp:param name="tabNm" value="SPL_BSC_INFO"/>
								</jsp:include>
							</div>
						</div>

						<%-- 	<div class="sqPanel">
            <div class="sqPanel_head inL">
                <span>资质信息</span>
            </div>
            <table class="table_full tbl_1">
                <tbody>
                <tr>
                    <c:forEach items="${fileList}" var="cstFile" varStatus="status">
                    <c:if test="${status.index%4==0}">
                </tr>
                <tr>
                    </c:if>
                    <td>
                        <h5>${cstFile.datNm}</h5>
                        <div class="imgBox">
                            <c:if test="${ empty cstFile.filePath}">
                                <img src="${defImg}"  role="winOpen" title=""  onclick="showImg(event);">
                            </c:if>
                            <c:if test="${ not empty cstFile.filePath}">
                                <img id="imgPath"  role="winOpen" title="${cstFile.fileNm}" src="${cstFile.filePath}" onclick="showImg(event);" href="${cstFile.filePath}">
                            </c:if>
                        </div>
                        <div class="btns">
                                                <span class="sq-button sq-button-round co_normal" >
                                               <a   target="_blank"  href="<%=path%>/system/sysulfilesrec/downLoad.do?fileName=${cstFile.fileNm}&filePath=${cstFile.filePath}">下载</a>
                                           </span>
                        </div>
                    </td>
                    </c:forEach>
                </tr>
                </tbody>
                    </table>
                        </div> --%>
						<div id="dyncdiv">
								<%-- <jsp:include page="prdSplInfoDetailDynamicPage.jsp"></jsp:include> --%>
						</div>
						<div class="fieldBox col_100" style="display:none;">
							<div class="field">
								<input name="sId" id="sId" type="text" class="ui-textbox" value="${id }">
							</div>
						</div>

					</c:if>
					<div id="btnsBox" class="btnsBox">
						<c:if test="${isShowAuditBtn==1 }">
							<span id="passBtn" class="sq-button sq-button-round" onclick="auditPass(${id});">审核通过</span>
							<span id="noPassBtn" class="sq-button sq-button-round" onclick="auditNoPass(${id});">审核不通过</span>
						</c:if>
						<c:if test="${audStsCd == 1 }">
                		<span id="relationships" onclick="relationshipsView()" class="sq-button sq-button-round">集团关联图谱</span>
                		<span id = "addBtn" onclick="save()"  class="sq-button sq-button-round">保存</span>
            			</c:if>
					</div>
				</div>
			</form>
		</div>
		<div tabid="tabB" title="备案资料">
			<iframe frameborder="0" name="tabB" id="tabB" src=""></iframe>
		</div>
		<!-- <div tabid="tabC" title="备案授信">
        <iframe frameborder="0" name="tabC" id="tabC" src=""></iframe>
        </div> -->
		<div tabid="tabD" title="备案账号">
			<iframe frameborder="0" name="tabD" id="tabD" src=""></iframe>
		</div>
		<c:if test="${isFlow != '1'}">
			<div tabid="tabE" title="相关项目">
				<iframe frameborder="0" name="tabE" id="tabE" src=""></iframe>
			</div>
		</c:if>
		<%--//修改供应商流程权限变更  fengzuoxiang  2019-06-14--%>
		<c:if test="${currentBuOrgCd == '0000' || currentBuOrgCd == '00000001' || currentBuOrgCd == '00000014' || isFlow == 1 }">
			<div tabid="tabF" title="流程权限列表">
				<iframe frameborder="0" name="tabF" id="tabF" src=""></iframe>
			</div>
		</c:if>

		<c:if test="${isFlow != '1'}">
			<div tabid="tabG" title="配置维护">
				<iframe frameborder="0" name="tabG" id="tabG" src=""></iframe>
			</div>
			<div tabid="tabH" title="变更记录">
				<iframe frameborder="0" name="tabH" id="tabH" src=""></iframe>
			</div>
			<c:if test="${isShowSplRenewProtocol == 1 }">
				<div tabid="tabI" title="合同续签">
					<iframe frameborder="0" name="tabI" id="tabI" src=""></iframe>
				</div>
			</c:if>
			<div tabid="tabJ" title="人工干预">
				<iframe frameborder="0" name="tabJ" id="tabJ" src=""></iframe>
			</div>
		</c:if>
		<div tabid="tabK" title="三方数据">
			<iframe frameborder="0" name="tabK" id="tabK" src=""></iframe>
		</div>
		<c:if test="${currentBuOrgCd == '00000001' || isFlow == 1 }">
			<div tabid="tabL" title="特殊业务权限列表">
				<iframe frameborder="0" name="tabK" id="tabL" src=""></iframe>
			</div>
		</c:if>
		<div tabid="tabM" title="敞口统计">
			<iframe frameborder="0" name="tabM" id="tabM" src=""></iframe>
		</div>
	</div>
</div>




<script type="text/javascript">
    var extData;
    var loadedTabs=[];
    var ischange = '${ischange}';
    var splAttrCd = '${splAttrCd}';
    var qualTypCd = '${qualTypCd}';
    var currBuOrgCd = '${currentBuOrgCd}';
    var isFlow = '${isFlow}';
	var isShowSave = '${isShowSave}';
	var isModify = '${audStsCd}';
	var isApply = '${isApply}';
	var _isModify = '${isModify}';
	var _propId = '${propId}';
	var _isSpePow = '${isSpePow}'
	var _mdfFile = '${mdfFile}';
	var _isShowBigCustomer = '${isShowBigCustomer}';
	var _isBigCustomerFlow = '${isBigCustomerFlow}';
	var _onlyShow = '${onlyShow}'
    var isCreditReviewNode = '${isCreditReviewNode}';

	$(function(){
        initTab();
        initData();
        console.log($('#isShowThreeDataPage').length);
        if('${splAttrCd}' == '1') {
        	initNpSocialRlGrid();
        }else {
	        initSplRlGrid();
        }
        if(isModify != 1){
       		if (liger.get("isUploadLoa")) {
            	liger.get("isUploadLoa").setDisabled(true);
        	}
       		if (liger.get("isRecycleLoa")) {
            	liger.get("isRecycleLoa").setDisabled(true);
        	}
        }
        $("#formSet1").ligerForm();
    });
    function toRegAddrList(){
        var regAddr = $("#regAddr").text();
        if(StringUtils.isEmpty(regAddr)){
            $.ligerDialog.SQalert({content: "注册地址信息为空，不支持查询!", SQ_type: "warning"});
            return ;
        }
        Add_navTab('tab_re_mgr_prj','查重页面','<%=path%>/spl/regAddrRel/toRegAddrList.do?addr='+regAddr);

    };
    //审核通过
    function auditPass(_splId){
        if(StringUtils.isEmpty(_splId)) return;
        var url = '<%=path%>/product/splInfo/modifyAudStsCd.do';
        var wait_dialog;
        $.ajax({
            type: 'post',
            dataType:'json',
            data:{id:_splId,audStsCd:FlowConstant.FLOW_CHECK_STATE_PASS},
            url: url,
            beforeSend: function(){
                wait_dialog=top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
            },
            success:function(msg){
                wait_dialog.close();
                if(msg.success == 1){
                    top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
                    //回调刷新列表
                    var callback = GET_W2Wcallback();
                    callback();
                }else{
                    top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
                }
            }
        });
    }
    function save() {
    	var _splId = $("#sId").val();
   	    if(StringUtils.isEmpty(_splId)) return;
    	var _isUploadLoa = $("#isUploadLoa").val();
    	var _isRecycleLoa = $("#isRecycleLoa").val();
    	var _succ = $("#succMdf").val();
          var url = '<%=path%>/product/splInfo/saveLoa.do';
          var wait_dialog;
          $.ajax({
              type: 'post',
              dataType:'json',
              data:{id:_splId,isRecycleLoa:_isRecycleLoa,isUploadLoa:_isUploadLoa,succ:_succ},
              url: url,
              beforeSend: function(){
                  wait_dialog=top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
              },
              success:function(msg){
                  wait_dialog.close();
                  if(msg.success == 1){
                      top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
                      //回调刷新列表
                      var callback = GET_W2Wcallback();
                      callback();
                  }else{
                      top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
                  }
              }
          });
    }
    //审核不通过
    function auditNoPass(_splId){
        if(StringUtils.isEmpty(_splId)) return;
        var url = '<%=path%>/product/splInfo/modifyAudStsCd.do';
        var wait_dialog;
        $.ajax({
            type: 'post',
            dataType:'json',
            data:{id:_splId,audStsCd:FlowConstant.FLOW_CHECK_STATE_NO_PASS},
            url: url,
            beforeSend: function(){
                wait_dialog=top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
            },
            success:function(msg){
                wait_dialog.close();
                if(msg.success == 1){
                    top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
                    //回调刷新列表
                    var callback = GET_W2Wcallback();
                    callback();
                }else{
                    top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
                }
            }
        });
    }

    //初始化主要人员信息
    function initSplRlGrid() {
        var _sId = $("#sId").val();
        var _audStsCd = ${audStsCd}
        if(!_sId){
            return; //验证不通过，不执行以下代码
        }
        $("#ligergrid_A1").ligerGrid({
            usePager: false,
            url: '<%=path%>/product/splRlPsn/initList.do?splId=' +_sId+'&audStsCd='+_audStsCd+'&isEncrypt=1',
            method : 'get',
            columns: [
                { display: '联系人姓名', name: 'rlNm', minWidth: 100},
                { display: '联系人类型', name: 'rlTypCdNm', minWidth: 140},
                {display: '股比',name:'stockRatio',width:100},
                { display: '证件类型', name: 'certTypCdNm', minWidth: 140},
                {
                    display: '关联公司', name: 'rlNm', minWidth: 60,
                    render: function (rowdata, rowindex, value) {
                        return '<a href="javascript:toRlEntPage(\''+value+'\');" class="sq-button-hasicon"><i class="sqBtnIco_1"></i></a>';
                    }
                },
                { display: '证件号', name: 'certNo', minWidth: 170,align:'left', render: function(rowdata, rowindex, value){
                    if (value != null && value != '') {
                        return '<a href="javascript:toCertNoCheckPage(\''+value+'\');" class="sq-button-hasicon link">'
                            + '<i class="sqBtnIco_1"></i></a>'
                            + value;
                    }
                }},
                { display: '联系电话', name: 'tel', minWidth: 150},
                //{ display: '备注', name: 'rlRem', minWidth: 150}
                { display: '工商信息校验', name: 'checkVerify', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        var h = "";
                        if(_audStsCd == 1){
                            if(rowdata.busInfoVerify == 2 || rowdata.busInfoVerify == null){
                                //h += "<a  href = "javascript:checkRlPsn('Verify',\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.tel+'\');" class = "sq-button sq-button-round">验证</a>"

                                h+= '<a class="sq-button sq-button-round" href="javascript:checkRlPsn(1,\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.tel+'\',\''+rowdata.rlTypCd+'\');">验证</a>'
                            }else{
                                h +='<div class="sq-button sq-button-round disabled">已校验</div>'
                            }
                        }
                        return h;
                    }
                },
                { display: '工商信息校验结果', name: 'busInfoVerify', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        if(rowdata.busInfoVerify == 1){
                            return "一致" ;
                        }else if(rowdata.busInfoVerify == -1){
                            return "不一致";
                        }else if(rowdata.busInfoVerify == 0){
                            return "未查得";
                        }else{
                            return "";
                        }
                    }
                },
                { display: '三要素校验（机构1）', name: 'PYCheck', minWidth: 150,
                    render: function(rowdata, rowindex, value){

                        var h = "";
                        if(_audStsCd == 1){
                            if(rowdata.pyPerVerify == 2 || rowdata.pyPerVerify == null){
                                //h += "<a  href = "javascript:checkRlPsn('Verify',\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.tel+'\');" class = "sq-button sq-button-round">验证</a>"

                                h+= '<a class="sq-button sq-button-round" href="javascript:checkRlPsn(2,\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.tel+'\',\''+rowdata.rlTypCd+'\');">验证</a>'
                            }else{
                                h+='<div class="sq-button sq-button-round disabled">已校验</div>'
                            }
                        }
                        return h;
                    }
                },
                { display: '三要素校验结果1', name: 'pyPerVerify', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        if(rowdata.pyPerVerify == 1){
                            return "一致" ;
                        }else if(rowdata.pyPerVerify == -1){
                            return "不一致";
                        }else if(rowdata.pyPerVerify == 0){
                            return "未查得";
                        }else{
                            return "";
                        }
                    }
                },
                { display: '三要素校验（机构2）', name: 'TDCheck', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        var h = "";
                        if(_audStsCd == 1){
                            if(rowdata.tdPerVerify == 2 ||  rowdata.tdPerVerify == null){
                                //h += "<a  href = "javascript:checkRlPsn('Verify',\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.tel+'\');" class = "sq-button sq-button-round">验证</a>"

                                h+= '<a class="sq-button sq-button-round" href="javascript:checkRlPsn(3,\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.tel+'\',\''+rowdata.rlTypCd+'\');">验证</a>'
                            }else{
                                h +='<div class="sq-button sq-button-round disabled">已校验</div>'
                            }
                        }
                        return h;
                    }
                },
                { display: '三要素校验结果2', name: 'tdPerVerify', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        if(rowdata.tdPerVerify == 1){
                            return "一致" ;
                        }else if(rowdata.tdPerVerify == -1){
                            return "不一致";
                        }else if(rowdata.tdPerVerify == 0){
                            return "未查得";
                        }else{
                            return "";
                        }
                    }
                },
                { display: '三要素校验（机构3）', name: 'BRCheck', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        var h = "";
                        if(_audStsCd == 1){
                            if(rowdata.brPerVerify == 2 || rowdata.brPerVerify == null){
                                //h += "<a  href = "javascript:checkRlPsn('Verify',\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.tel+'\');" class = "sq-button sq-button-round">验证</a>"
                                h+= '<a class="sq-button sq-button-round" href="javascript:checkRlPsn(4,\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.tel+'\',\''+rowdata.rlTypCd+'\');">验证</a>'
                            }else{
                                h +='<input class="sq-button sq-button-round disabled" type="button" value="已校验" disabled>'
                            }
                        }
                        return h;
                    }
                },
                { display: '三要素校验结果3', name: 'brPerVerify', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        if(rowdata.brPerVerify == 1){
                            return "一致" ;
                        }else if(rowdata.brPerVerify == -1){
                            return "不一致";
                        }else if(rowdata.brPerVerify == 0){
                            return "未查得";
                        }else{
                            return "";
                        }
                    }
                },
				{ display: '操作', minWidth: 80 , align:'left',
					render: function (rowdata, rowindex, value){
						var d = "";
						if(rowdata.isDefault != 1){
							if(_audStsCd == 1 ){
								if(rowdata.id){
									d='<a class="sq-button-hasicon" href="javascript:deleteDB(';
									d+="'"+rowdata.__id+"'";
									d+=",'"+rowdata.id+"'";
									d+=')"><i class="sqBtnIco_7"></i>删除</a>';
								}
							}
						}
						return d;
					}
				}

            ],
            pageSize:10,
            root:'rows',
            record:'total',
            hideLoadButton : true,
            width: '100%',
            isScroll: false,
            //checkbox:true,
            rownumbers:true,
            onAfterShowData: function() {
                SetIframe_height ();
            }
        });
        npSocialRlGrid = liger.get("ligergrid_A1");
    };

  //初始化主要人员信息
    function initNpSocialRlGrid() {
        var _sId = $("#sId").val();
        var _audStsCd = ${audStsCd}
        if(!_sId){
            return; //验证不通过，不执行以下代码
        }
        $("#ligergrid_A1").ligerGrid({
            usePager: false,
            url: '<%=path%>/npspl/splnpsocialrl/initList.do?splId=' +_sId+'&audStsCd='+_audStsCd + '&isEncrypt=1',
            method : 'get',
            columns: [
                { display: '关系', name: 'rlTypCd', minWidth: 100,
	                render: function (item) {
	                     return item.rlTypCdNm;
	                },
                },
                { display: '姓名', name: 'rlNm', minWidth: 140},
                { display: '手机号', name: 'mp', minWidth: 140},
                {display: '职位',name:'pos',width:100},
                { display: '证件类型', name: 'certTypCdNm', minWidth: 140},
                { display: '证件号', name: 'certNo', minWidth: 150, render: function(rowdata, rowindex, value){
                    /* if (value != null && value != '') {
                        return '<a href="javascript:toCertNoCheckPage(\''+value+'\');" class="sq-button-hasicon link">'
                            + '<i class="sqBtnIco_1"></i></a>'
                            + value;
                    } */
                    return value;
                }},
                {
                    display: '单位地址', name: 'workAddr', width: 150,
				},
                { display: '三要素校验（机构1）', name: 'PYCheck', minWidth: 150,
                    render: function(rowdata, rowindex, value){

                        var h = "";
                        if(_audStsCd == 1){
                            if(rowdata.pyPerVerify == 2 || rowdata.pyPerVerify == null){
                                //h += "<a  href = "javascript:checkRlPsn('Verify',\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.tel+'\');" class = "sq-button sq-button-round">验证</a>"

                                h+= '<a class="sq-button sq-button-round" href="javascript:checkRlPsn(2,\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.mp+'\',\''+rowdata.rlTypCd+'\');">验证</a>'
                            }else{
                                h+='<div class="sq-button sq-button-round disabled">已校验</div>'
                            }
                        }
                        return h;
                    }
                },
                { display: '三要素校验结果1', name: 'pyPerVerify', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        if(rowdata.pyPerVerify == 1){
                            return "一致" ;
                        }else if(rowdata.pyPerVerify == -1){
                            return "不一致";
                        }else if(rowdata.pyPerVerify == 0){
                            return "未查得";
                        }else{
                            return "";
                        }
                    }
                },
                { display: '三要素校验（机构2）', name: 'TDCheck', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        var h = "";
                        if(_audStsCd == 1){
                            if(rowdata.tdPerVerify == 2 ||  rowdata.tdPerVerify == null){
                                //h += "<a  href = "javascript:checkRlPsn('Verify',\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.tel+'\');" class = "sq-button sq-button-round">验证</a>"

                                h+= '<a class="sq-button sq-button-round" href="javascript:checkRlPsn(3,\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.mp+'\',\''+rowdata.rlTypCd+'\');">验证</a>'
                            }else{
                                h +='<div class="sq-button sq-button-round disabled">已校验</div>'
                            }
                        }
                        return h;
                    }
                },
                { display: '三要素校验结果2', name: 'tdPerVerify', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        if(rowdata.tdPerVerify == 1){
                            return "一致" ;
                        }else if(rowdata.tdPerVerify == -1){
                            return "不一致";
                        }else if(rowdata.tdPerVerify == 0){
                            return "未查得";
                        }else{
                            return "";
                        }
                    }
                },
                { display: '三要素校验（机构3）', name: 'BRCheck', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        var h = "";
                        if(_audStsCd == 1){
                            if(rowdata.brPerVerify == 2 || rowdata.brPerVerify == null){
                                //h += "<a  href = "javascript:checkRlPsn('Verify',\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.tel+'\');" class = "sq-button sq-button-round">验证</a>"
                                h+= '<a class="sq-button sq-button-round" href="javascript:checkRlPsn(4,\''+rowdata.id+'\',\''+rowdata.rlNm+'\',\''+rowdata.certNo+'\',\''+rowdata.mp+'\',\''+rowdata.rlTypCd+'\');">验证</a>'
                            }else{
                                h +='<input class="sq-button sq-button-round disabled" type="button" value="已校验" disabled>'
                            }
                        }
                        return h;
                    }
                },
                { display: '三要素校验结果3', name: 'brPerVerify', minWidth: 150,
                    render: function(rowdata, rowindex, value){
                        if(rowdata.brPerVerify == 1){
                            return "一致" ;
                        }else if(rowdata.brPerVerify == -1){
                            return "不一致";
                        }else if(rowdata.brPerVerify == 0){
                            return "未查得";
                        }else{
                            return "";
                        }
                    }
                },

            ],
            pageSize:10,
            root:'rows',
            record:'total',
            hideLoadButton : true,
            width: '100%',
            isScroll: false,
            //checkbox:true,
            rownumbers:true,
            onAfterShowData: function() {
                SetIframe_height ();
            }
        });
        npSocialRlGrid = liger.get("ligergrid_A1");
    };
	function deleteDB(rowdata_id,_id){
		//删除数据库
		var _ids = [];
		_ids.push(_id);
		$.ligerDialog.confirm(LogUtils.LOG_CMM_DELETE_CONFIRM, function (flag) {
			if(flag == false)return;
			var wait_dialog;
			$.ajax({
				type: 'post',
				dataType:'json',
				data:{ids:JSON.stringify(_ids)},
				url: '<%=path%>/product/splRlPsn/removeByIds.do',
				beforeSend: function(){
					wait_dialog=$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING,SQ_type:"waitting"});
				},
				success:function(msg){
					wait_dialog.close();
					if(msg.success == 1){
						$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
						if ($('#splAttrCd').val() == 1) {
							splNpSocialRlGrid.reload();
						}else{
							npSocialRlGrid.reload();
						}
					}else{
						$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
					}
				}
			});
		});
	}

    // 跳转到证件号查重页面
    function toCertNoCheckPage(certNo){
        Add_navTab('tab_cert_no_check','证件号查重页面','<%=path%>/spl/cstRelInfoView/toCstRelInfoView.do?certNo=' + certNo);
    }
    // 跳转到关联公司页面
    function toRlEntPage(_name){
    	var params = '';
    	params += 'name=' + _name;
    	params += '&entname=' + $('#splNm').text();
        Add_navTab('tab_rl_ent_page'+_name,'关联公司','<%=path%>/splExecRypossha/toListPage.do?' + params);
    }

    function checkRlPsn(type,dataId,rlNm,certNo,tel,rlTypCd){
        var _type ;
        if(type == 1){
            _type = 'verify' ;
        }
        if(type == 2){
            _type = 'PY' ;
        }
        if(type == 3){
            _type = 'TD' ;
        }
        if(type == 4){
            _type = 'BR' ;
        }
        var splId = $("#sId").val();
        var splAttrCd = '${splAttrCd}';
        var _url = '<%=path%>/product/splRlPsn/checkRlPsn.do';
        $.ajax({
            type: 'post',
            dataType : 'json',
            data:{
                type:_type,
                dataId:dataId,
                rlNm:rlNm,
                certNo:certNo,
                tel:tel,
                splId:splId,
                splAttrCd:splAttrCd
            },
            url:_url,
            success:function(msg){
                if(msg.success == 1){
                    //alert(msg.info)
                    if (${splAttrCd} == 1) {
			        	initNpSocialRlGrid();
			        } else {
				        initSplRlGrid();
			        }

                }else{
                    // $.ligerDialog.SQalert({content:msg.data, SQ_type: "error"});
                    if (${splAttrCd} == 1) {
			        	initNpSocialRlGrid();
			        } else {
				        initSplRlGrid();
			        }
                }
            }
        });
    }

    function initData(){
        var id = $("#sId").val();
        if(!id)return;
        var _url = '<%=path%>/product/splInfo/getById.do?opTypCd=isDetail&isEncrypt=1';
        $.ajax({
            type: 'get',
            dataType:'json',
            data:{id:id},
            url: _url,
            success:function(msg){
                if(msg.success == 1){
                    setData(msg.data);//设置数据
                    extData = msg.data;
                }else{
                    $.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
                }
            }
        });
    }
    function relationshipsView(){
		//var org_cd = $("#succ").html();
		var org_cd = $("#succMdf").val();
		if(org_cd == null){
			org_cd = $("#succ").html();
		}
		var id = $("#sid").val();
		var currentUserId = '${currentUserId}'
		if(!org_cd){
            $.ligerDialog.SQalert({content: "社会同一信用代码为空！", SQ_type: "warning"});
			return false ;
		}
		Add_navTab('tab_relationships_view_data'+id+'1','集团关联图谱','<%=path%>/knowledgeGraph/init/initGraphGroupPage.do?org_code='+org_cd+'&usrId='+currentUserId);//http://10.20.7.110:8090/sq/groupNetworkByOrgCode
	}
    //设置页面数据
    function setData(data){

        var form = liger.get("formSet1");
        form.setData({
    		isUploadLoa:data.isUploadLoa,
    		isRecycleLoa:data.isRecycleLoa
    	});
        //add by zhaoyong 20170829   begin
        //是否可以查询征信
        if(data.isAuthCrdChk==1){
            $("#isAuthCrdChk").html("是");
        }else if(data.isAuthCrdChk==0){
            $("#isAuthCrdChk").html("否");
        }
        $("#limChkTms").html(data.limChkTms);
        //add by zhaoyong 20170829   end
        $("#corpTypCdNm").html(data.corpTypCdNm);
        $("#orgCdNm").html(data.orgCdNm);
        $("#splNm").html(data.splNm);
        $("#taxRegNo").html(data.taxRegNo);
        if(StringUtils.isNotEmpty(data.splTel)){
            $("#splTel").html(data.splTel);
		}else if(StringUtils.isNotEmpty(data.applyTel)){
            $("#splTel").html(data.applyTel);
		}
        //$("#splTel").html(data.splTel);
        $("#succ").html(data.succ);
        $("#splFax").html(data.splFax);
        $("#bizLicNo").html(data.bizLicNo);
        $("#orgCode").html(data.orgCode);
        $("#regCapAmt").html(data.regCapAmt);
        $("#regCapUntCdNm").html(data.regCapUntCdNm);
        $("#paidCapAmt").html(data.paidCapAmt);
        $("#paidCapUntCdNm").html(data.paidCapUntCdNm);
        $("#ownerCdNm").html(data.ownerCdNm);
        $("#regAddr").html(data.regAddr);
        $("#rgnPrCd").html(data.rgnPrCd);
        $("#postAddr").html(data.postAddr);
        $("#websit").html(data.websit);
        $("#othInfoCd").html(data.othInfoCd);
        $("#fileNo").html(data.fileNo);
        $("#rgnNms").html(data.rgnNms);
        $("#tkBrCdNms").html(data.tkBrCdNms);
        $("#carBrCdNms").html(data.carBrCdNms);
        $("#busBrCdNms").html(data.busBrCdNms);
        $("#buOrgCdNms").html(data.buOrgCdNms);
        $("#prjTypCdNms").html(data.prjTypCdNms);
        $("#mfrNms").html(data.mfrNms);
        $("#zipNo").html(data.zipNo);
        $("#splLvlCdNm").html(data.splLvlCdNm);
        $("#prjLvlCdNm").html(data.prjLvlCdNm);
        $("#atcIdNm").html(data.atcIdNm);

        $("#newCarNms").html(data.newCarCdNms);
        $("#usedCarNms").html(data.usedCarCdNms);
        $("#bizScope").html(data.bizScopeCdNms);
        $("#isUploadLoaNm").html(data.isUploadLoaNm);
        $("#isRecycleLoaNm").html(data.isRecycleLoaNm);
        $("#succMdf").val(data.succ);

        if(data.rebPct ==0 || data.rebPct == '' ||data.rebPct == '0' || data.rebPct == null){
            $("#rebPct").html(100);
        }else{
            $("#rebPct").html(data.rebPct);
        }
        //日期处理
        if(data.regDt){
            var date = new Date(data.regDt);
            var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
            $("#regDt").html(dateStr);
        }
        if(data.expDt){
            var date = new Date(data.expDt);
            var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
            $("#expDt").html(dateStr);
        }
        //是否回购处理
        if(data.isBuyBack==1){
            $("#isBuyBack").html("是");
        }else if(data.isBuyBack==0){
            $("#isBuyBack").html("否");
        }
        //扩展信息处理
        var _buOrgCds = JSON.stringify(data.buOrgCds);
        console.log(JSON.stringify(data.buOrgCds));
        // jiangzg add 2017-7-31 16:52:27 专车
        if(data.splTypCd){
            $("#splTypCd").html(data.splTypCdNm);
        }
        if(data.coopDt){
            var date = new Date(data.coopDt);
            var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
            $("#coopDt").html(dateStr);
        }
        if(data.splTypCd !=null && '1' == data.splTypCd){
            $("#zk_01").css("display", 'block');
            $("#zk_02").css("display", 'block');
            $("#zk_03").css("display", 'block');
            $("#zk_04").css("display", 'block');
            $("#zk_05").css("display", 'block');
            $("#agtSec").html(data.agtSec);
            $("#agtThd").html(data.agtThd);
            $("#bscTaskQty").html(data.bscTaskQty);
            $("#entDepAmt").html(data.entDepAmt);
            $("#prdMaxValAmt").html(data.prdMaxValAmt);
        }
        if ('0' == data.audStsCd) {
        	console.log('audStsCd = 0');
        	$('.creditIsHidden').css("display", "none");
        	console.log($('.creditIsHidden'));
        } else {
        	console.log('audStsCd != 0');
        	/* $('#rskLvlCd').html(data.rskLvlCd);
        	$('#audStsDesc').html(data.audStsDesc); */
        }
        //2017-5-20 12:40:53 by jiangzg delete
        /*var _url = '<%=path%>/product/splInfo/toDetailDynamicPage.do';
    		$("#dyncdiv").load(_url,{buOrgCds:_buOrgCds},function(responseText,textStatus){
    			//dynamicPageUIInst();//重新设置字段样式,本方法应该在动态页面中自己根据动态字段写好
    			$("#formSet1").check_ligerFormEditor();
    			setExtData(extData);
    		});*/

    };

    function setExtData(data){
        var form = liger.get("formSet1");
        if(data){
            $("#bilWayCdNm").html(data.bilWayCdNm);
        }
        //动态字段值的设置放在事业部之后
        /* if(data.splBscExtInfoVO){
            $("#ctrlNm").html(data.splBscExtInfoVO.ctrlNm);
            $("#ctrlTel").html(data.splBscExtInfoVO.ctrlTel);
            $("#ctrlRec").html(data.splBscExtInfoVO.ctrlRec);
            $("#slArea").html(data.splBscExtInfoVO.slArea);
            $("#aftSlSvc").html(data.splBscExtInfoVO.aftSlSvc);

            $("#splLvlCdNm").html(data.splBscExtInfoVO.splLvlCdNm);
            $("#bilWayCdNm").html(data.splBscExtInfoVO.bilWayCdNm);
            $("#prjLvlCdNm").html(data.splBscExtInfoVO.prjLvlCdNm);
        } */
    };

    //初始化Tab页
    function initTab(){
        pageInTab = $("#pageInTab").ligerTab({
            height: 'auto',
            contextmenu: false,
            minIframeHeight: 450,
            onBeforeSelectTabItem: function (tabid) {
                var _sId = $("#sId").val();
                if(tabid!="tabA"){
                    if(!_sId){
                        top.$.ligerDialog.SQalert({content: "请确认经销商基本信息已存在", SQ_type: "warning"});
                        return false;
                    }
                }
            },
            onAfterSelectTabItem: function(tabid) {
                if (loadedTabs.indexOf(tabid)<0) {
                    var _sId = $("#sId").val();
                    if(tabid!="tabA"){
                        if(!_sId){
                            top.$.ligerDialog.SQalert({content: "请确认经销商基本信息已存在", SQ_type: "warning"});
                            return false;
                        }
                    }
                    loadedTabs.push(tabid);
                    switch (tabid){
                        case "tabB":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/product/splInfo/toSplFileAddPage.do?isDetail=1&splId=" + _sId +"&splAttrCd="+splAttrCd+"&qualTypCd="+qualTypCd);
                            break;
                        case "tabC":
                            pageInTab.setTabItemSrc(tabid, "");
                            break;
                        case "tabD":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/product/splBank/toListPageDetail.do?splId=" + _sId );
                            break;
                        case "tabE":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/product/splInfo/toSplPrjBscInfoDetailList.do?splId=" + _sId );
                            break;
                        case "tabF":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/bizflow/sysBizFlowRl/toAddPage.do?saveBizFlowRl=${saveBizFlowRl}&saveNoSpNum=${saveNoSpNum}&tabNm=SPL_BSC_INFO&codeGrpCd=FLW0001&isDetail=1&dataId=" + _sId + '&currBuOrgCd='+ currBuOrgCd + '&isFlow='+isFlow + '&isShowSave='+isShowSave);
                            break;
                        case "tabG":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/product/splUsrR/toSplConfigDtail.do?splId=" + _sId );
                            break;
                        case "tabH":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/product/splApplyInfo/toSplInfoApplyListPage.do?splId=" + _sId );
                            break;
                        case "tabI":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/spl/splReProtocol/toSplProtocolRecPage.do?splId=" + _sId );
                            break;
						case "tabJ":
							pageInTab.setTabItemSrc(tabid, "<%=path%>/customer/cstManualRelation/toListPage.do?Id=" + _sId +"&useType=2&cstType=" + splAttrCd);
							break;
						case "tabK":
							pageInTab.setTabItemSrc(tabid, "<%=path%>/product/splInfo/toThreeDataPage.do?splId=" + _sId+"isApply="+isApply + "&isFlow=" + '${ausStsCd}' + "&saveBizFlowRl=" + '${saveBizFlowRl}' + "&isWarnCheck=" + '${isWarnCheck}' + "&warnRecId=" + '${warnRecId}' + "&isRiskWarnFlow=" + '${isRiskWarnFlow}');
							break;
						case "tabL":
							if(_isBigCustomerFlow && _isBigCustomerFlow == 1){
								pageInTab.setTabItemSrc(tabid, "<%=path%>/spl/spepow/toAddBigCustomerPage.do?splId=" + _sId + "&mdfFile="+_mdfFile+ "&id=" + _propId+"&inFlow=1&_onlyShow="+_onlyShow  );
							}else{
								if(splAttrCd == 2){
									pageInTab.setTabItemSrc(tabid, "<%=path%>/spl/spepow/toAddPage.do?splId=" + _sId + "&isModify=" + _isModify+"&mdfFile="+_mdfFile+ "&isApply=" + isApply + "&isCreditReviewNode=" + isCreditReviewNode + "&id=" + _propId  + "&noStartFlow=" + '${noStartFlow}' + "&isFlow=" + '${isFlow}'+"&isSpePow="+_isSpePow+"&isShowBigCustomer="+_isShowBigCustomer);
								}else{
									pageInTab.setTabItemSrc(tabid, "<%=path%>/spl/spepow/toAddPage.do?splId=" + _sId + "&isModify=" + _isModify+"&mdfFile="+_mdfFile+ "&isApply=" + isApply + "&isCreditReviewNode=" + isCreditReviewNode + "&id=" + _propId  + "&noStartFlow=" + '${noStartFlow}' + "&isFlow=" + '${isFlow}'+"&isSpePow="+_isSpePow);
								}
							}
							break;
						case "tabM":
							pageInTab.setTabItemSrc(tabid, "<%=path%>/splCap/capPrjAr/toCapPrjArListPage.do?dataId=" + _sId + "&type=4" );
							break;
                    }
                };
                SetIframe_height();
            }
        });

        if(ischange == "0"){
            pageInTab.removeTabItem("tabH");
        }
        if ($('#isShowThreeDataPage').length <= 0) {
        	pageInTab.removeTabItem("tabK");
        }
		if ($('#isShowPrjArPage').length <= 0) {
			pageInTab.removeTabItem("tabM");
		}


        /* $.extend(true, pageInApp, {
            pageInTab: pageInTab
        }); */
    };

</script>



</body>
</html>
